package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 供应商提现申请表（对账单）明细
 * @author XJY
 */
public class Merchantwithdrawdetail implements Serializable {

	private Long id;							//id
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long merchantwithdrawId;		    //对账单id
	private Integer profitStatus;			    //分润状态(-1分账失败 0未分账 1已分账)
	private Integer merchantStatus;				//供应商提现状态(0不可提现 1未提现 2提现中 3提现成功 4提现失败)
	private Integer orderStatus;			    //订单状态(1待发货 2待收货 5已退款 )
	private String withdrawNo;				    //提现单号
	private String dateNo;					    //期号
	private String orderNo;					    //订单号
	private String goodsName;					//商品名称
	private String goodsPrice;					//商品单价
	private String goodsCount;					//商品数量
	private Double orderAmount;					//订单金额
	private String merchantName;				//供应商名称
	private String merchantCode;				//供应商编码
	private Double merchantAmount;			    //供应商分润总额
	private Double merchanRatio;			    //供应商分润比例
	private Date gmtOrder;					    //下单时间
	private Date gmtComplete;					//订单完成时间
	private Date gmtWithdraw;					//提现时间

	private Merchantwithdraw merchantwithdraw;	//对账单信息
	
    public Merchantwithdrawdetail(){

    }

    public Merchantwithdrawdetail(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Merchantwithdrawdetail(Long merchantwithdrawId) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.merchantwithdrawId=merchantwithdrawId;
       this.profitStatus=0;      
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setMerchantwithdrawId(Long merchantwithdrawId){
		this.merchantwithdrawId=merchantwithdrawId;
	}

	public Long getMerchantwithdrawId(){
		return merchantwithdrawId;
	}

	public void setProfitStatus(Integer profitStatus){
		this.profitStatus=profitStatus;
	}

	public Integer getProfitStatus(){
		return profitStatus;
	}

	public void setOrderStatus(Integer orderStatus){
		this.orderStatus=orderStatus;
	}

	public Integer getOrderStatus(){
		return orderStatus;
	}

	public void setWithdrawNo(String withdrawNo){
		this.withdrawNo=withdrawNo;
	}

	public String getWithdrawNo(){
		return withdrawNo;
	}

	public void setDateNo(String dateNo){
		this.dateNo=dateNo;
	}

	public String getDateNo(){
		return dateNo;
	}

	public void setOrderNo(String orderNo){
		this.orderNo=orderNo;
	}

	public String getOrderNo(){
		return orderNo;
	}

	public void setGoodsName(String goodsName){
		this.goodsName=goodsName;
	}

	public String getGoodsName(){
		return goodsName;
	}

	public String getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(String goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public String getGoodsCount() {
		return goodsCount;
	}

	public void setGoodsCount(String goodsCount) {
		this.goodsCount = goodsCount;
	}

	public void setOrderAmount(Double orderAmount){
		this.orderAmount=orderAmount;
	}

	public Double getOrderAmount(){
		return orderAmount;
	}

	public void setMerchantAmount(Double merchantAmount){
		this.merchantAmount=merchantAmount;
	}

	public Double getMerchantAmount(){
		return merchantAmount;
	}

	public void setMerchanRatio(Double merchanRatio){
		this.merchanRatio=merchanRatio;
	}

	public Double getMerchanRatio(){
		return merchanRatio;
	}

	public void setGmtOrder(Date gmtOrder){
		this.gmtOrder=gmtOrder;
	}

	public Date getGmtOrder(){
		return gmtOrder;
	}

	public void setGmtComplete(Date gmtComplete){
		this.gmtComplete=gmtComplete;
	}

	public Date getGmtComplete(){
		return gmtComplete;
	}

	public void setGmtWithdraw(Date gmtWithdraw){
		this.gmtWithdraw=gmtWithdraw;
	}

	public Date getGmtWithdraw(){
		return gmtWithdraw;
	}

	public Integer getMerchantStatus() {
		return merchantStatus;
	}

	public void setMerchantStatus(Integer merchantStatus) {
		this.merchantStatus = merchantStatus;
	}

	public Merchantwithdraw getMerchantwithdraw() {
		return merchantwithdraw;
	}

	public void setMerchantwithdraw(Merchantwithdraw merchantwithdraw) {
		this.merchantwithdraw = merchantwithdraw;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getMerchantCode() {
		return merchantCode;
	}

	public void setMerchantCode(String merchantCode) {
		this.merchantCode = merchantCode;
	}

}
